package com.flowerplus.store.app.login;

import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.flowerplus.store.R;
import com.flowerplus.store.app.Navigation;
import com.flowerplus.store.common.structure.mvp.BasePresenter;
import com.flowerplus.store.common.structure.ui.activity.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by dell - on 2018/1/18.
 */

public class LoginModeActivity extends BaseActivity {
    @BindView(R.id.logo)
    ImageView mLogo;
    @BindView(R.id.btn_close)
    Button mBtnClose;
    @BindView(R.id.iv_fanhui)
    ImageView mIvFanhui;
    @BindView(R.id.ll_login_by_wx)
    LinearLayout mLlLoginByWx;
    @BindView(R.id.tv_mobile_login)
    TextView mTvMobileLogin;
    @BindView(R.id.tv_jump)
    LinearLayout mTvJump;
    private Animation animation;
    @Override
    protected void initViews() {
        animation = AnimationUtils.loadAnimation(this,R.anim.login_set);
        mLogo.startAnimation(animation);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvents() {

    }

    @Override
    public void initInject() {

    }

    @Override
    protected int layoutResId() {
        return R.layout.activity_login_mode;
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }


    @OnClick({R.id.btn_close, R.id.iv_fanhui, R.id.ll_login_by_wx, R.id.tv_mobile_login, R.id.tv_jump})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_close:
                finish();
                break;
            case R.id.iv_fanhui:
                finish();
                break;
            case R.id.ll_login_by_wx:
                break;
            case R.id.tv_mobile_login:
                Navigation.goMobileInputActivity(mActivity);
                break;
            case R.id.tv_jump:
                Navigation.goMainActivity(mActivity);
                break;
        }
    }
}
